gtk4.git
5 years agoimcontext: Stop using GTK_MAX_COMPOSE_LEN
Matthias Clasen [Mon, 1 Feb 2021 13:39:42 +0000 (08:39 -0500)]
imcontext: Stop using GTK_MAX_COMPOSE_LEN

Allocate the compose_buffer, and resize it when needed
to match the tables we use.

5 years agoimcontext: Code cleanup
Matthias Clasen [Mon, 1 Feb 2021 17:08:38 +0000 (12:08 -0500)]
imcontext: Code cleanup

Use g_clear_pointer instead of opencoding it in
multiple places.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 1 Feb 2021 06:20:40 +0000 (06:20 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #2319

See merge request GNOME/gtk!3140

5 years agoimcontext: Allow sequences of length GTK_MAX_COMPOSE_LEN
Matthias Clasen [Mon, 1 Feb 2021 05:55:25 +0000 (00:55 -0500)]
imcontext: Allow sequences of length GTK_MAX_COMPOSE_LEN

There was an off-by-one error, making us reject sequences
of this length. But the rest of the code handles them
just fine.

Fixes: #2319
5 years agoimcontext: Improve an error message
Matthias Clasen [Mon, 1 Feb 2021 05:44:08 +0000 (00:44 -0500)]
imcontext: Improve an error message

This error message was misleading, as pointed out
by Ralf Jung.

5 years agoimcontext: Add a precondition check
Matthias Clasen [Mon, 1 Feb 2021 05:43:44 +0000 (00:43 -0500)]
imcontext: Add a precondition check

5 years agoimcontext: Show preedit for compose sequences
Matthias Clasen [Mon, 1 Feb 2021 05:37:43 +0000 (00:37 -0500)]
imcontext: Show preedit for compose sequences

Show the sequences as they are entered, using ⎄ for
the compose key, to match what IBus does nowadays.
Also handle backspace to allow corrections.

5 years agoimcontext: Update our check for dead keys
Matthias Clasen [Mon, 1 Feb 2021 01:55:29 +0000 (20:55 -0500)]
imcontext: Update our check for dead keys

A bunch of keysyms for dead keys have been added since this
code was last touched. Update the check to cover the full
range from dead_grave to dead_greek.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 1 Feb 2021 01:48:47 +0000 (01:48 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!3139

5 years agoMerge branch 'wip/exalm/consumes-motion' into 'master'
Matthias Clasen [Mon, 1 Feb 2021 01:34:45 +0000 (01:34 +0000)]
Merge branch 'wip/exalm/consumes-motion' into 'master'

Drag fixes and cleanups

Closes #3513

See merge request GNOME/gtk!3001

5 years agoRemove a forgotten file
Matthias Clasen [Fri, 29 Jan 2021 15:45:27 +0000 (10:45 -0500)]
Remove a forgotten file

The example series only has 9 steps now. Remove remnants
of step 10.

5 years agonativedialog: Add more docs
Matthias Clasen [Mon, 1 Feb 2021 01:22:59 +0000 (20:22 -0500)]
nativedialog: Add more docs

Emphasize that native dialogs aren't widgets, and are not
kept alive by GTK.

5 years agoMerge branch 'tool-static' into 'master'
Matthias Clasen [Mon, 1 Feb 2021 00:44:08 +0000 (00:44 +0000)]
Merge branch 'tool-static' into 'master'

tools: Don't static and dynamic link on libgtk4

See merge request GNOME/gtk!3138

5 years agoMerge branch 'wip/exalm/activate' into 'master'
Matthias Clasen [Mon, 1 Feb 2021 00:32:05 +0000 (00:32 +0000)]
Merge branch 'wip/exalm/activate' into 'master'

listitemwidget: Activate on release instead of press

Closes #3345

See merge request GNOME/gtk!3008

5 years agotools: Don't static and dynamic link on libgtk4
Xavier Claessens [Sun, 31 Jan 2021 16:03:16 +0000 (11:03 -0500)]
tools: Don't static and dynamic link on libgtk4

5 years ago4.1.0
Matthias Clasen [Sat, 30 Jan 2021 03:28:28 +0000 (22:28 -0500)]
4.1.0

5 years agotests: Disable the textview-margins reftest
Matthias Clasen [Sat, 30 Jan 2021 03:45:21 +0000 (22:45 -0500)]
tests: Disable the textview-margins reftest

It is too flaky to be useful.

5 years agonode editor: Add a dark mode toggle
Matthias Clasen [Sun, 31 Jan 2021 00:28:02 +0000 (19:28 -0500)]
node editor: Add a dark mode toggle

This is useful to see light rendering clearly.

5 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Sat, 30 Jan 2021 19:15:43 +0000 (19:15 +0000)]
Update Brazilian Portuguese translation

(cherry picked from commit 056c3e11a148ff72638afac0e4e9511a11d9987b)

5 years agoMerge branch 'mcclurgm-master-patch-63249' into 'master'
Timm Bäder [Sat, 30 Jan 2021 17:58:33 +0000 (17:58 +0000)]
Merge branch 'mcclurgm-master-patch-63249' into 'master'

Document nullability of gtk_list_box_get_selected_row

See merge request GNOME/gtk!3137

5 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Sat, 30 Jan 2021 16:00:24 +0000 (16:00 +0000)]
Update Brazilian Portuguese translation

(cherry picked from commit f224c8fab9c1d26e5a09e581b1de9d13fead6d74)

5 years agoDocument nullability of gtk_list_box_get_selected_row
Michael McClurg [Sat, 30 Jan 2021 15:23:41 +0000 (15:23 +0000)]
Document nullability of gtk_list_box_get_selected_row

5 years agoUpdate POTFILES.in
Piotr Drąg [Sat, 30 Jan 2021 13:21:32 +0000 (14:21 +0100)]
Update POTFILES.in

5 years agoMerge branch 'fix-unfocus-on-unmap' into 'master'
Matthias Clasen [Sat, 30 Jan 2021 03:25:19 +0000 (03:25 +0000)]
Merge branch 'fix-unfocus-on-unmap' into 'master'

Fix unsetting focus

Closes #3623

See merge request GNOME/gtk!3136

5 years agoFix unsetting focus
Matthias Clasen [Sat, 30 Jan 2021 02:41:16 +0000 (21:41 -0500)]
Fix unsetting focus

Make _gtk_window_unset_focus_and_default queue the changes
for after the next draw. This achieves two things: first,
it avoids invalidating css at the wrong time (e.g. when
setting child-visible during size-allocation), and second,
it defers the focus change until after the widget is
hidden, so that moving the focus has the desired effect
of picking a different, visible widget.

Fixes: #3623
5 years agoMerge branch 'msvc.nounistd' into 'master'
Matthias Clasen [Fri, 29 Jan 2021 20:16:13 +0000 (20:16 +0000)]
Merge branch 'msvc.nounistd' into 'master'

testsuite/testutils.c: Fix build on Visual Studio

See merge request GNOME/gtk!3131

5 years agoMerge branch 'gst-vaapi-fix' into 'master'
Matthias Clasen [Fri, 29 Jan 2021 19:06:03 +0000 (19:06 +0000)]
Merge branch 'gst-vaapi-fix' into 'master'

gtkgstsink: Sync texture before handing it to GDK

See merge request GNOME/gtk!3114

5 years agoMerge branch 'ci-gstreamer-deps' into 'master'
Matthias Clasen [Fri, 29 Jan 2021 19:05:47 +0000 (19:05 +0000)]
Merge branch 'ci-gstreamer-deps' into 'master'

Ci gstreamer deps

See merge request GNOME/gtk!3133

5 years agoMerge branch 'ebassi/for-master' into 'master'
Matthias Clasen [Fri, 29 Jan 2021 18:47:31 +0000 (18:47 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Ebassi/for master

See merge request GNOME/gtk!3134

5 years agogtkgstsink: Sync texture before handing it to GDK
Jan Alexander Steffens (heftig) [Mon, 25 Jan 2021 21:43:11 +0000 (22:43 +0100)]
gtkgstsink: Sync texture before handing it to GDK

We need to synchronize when moving the texture between contexts, or we
get glitches with VA-API decoding.

5 years agoci: Add mesa-libGLES-devel
Matthias Clasen [Fri, 29 Jan 2021 17:49:20 +0000 (12:49 -0500)]
ci: Add mesa-libGLES-devel

Try again, since libglvnd-devel is not the right choice.

5 years agobuild: Disable subproject Cairo tests
Emmanuele Bassi [Fri, 29 Jan 2021 16:30:19 +0000 (16:30 +0000)]
build: Disable subproject Cairo tests

There's really no point in running them.

5 years agodocs: Annotate XML fragments as such
Emmanuele Bassi [Thu, 28 Jan 2021 15:42:22 +0000 (15:42 +0000)]
docs: Annotate XML fragments as such

This way we can get syntax highlighting.

5 years agodocs: Escape bare tags
Emmanuele Bassi [Thu, 28 Jan 2021 14:54:10 +0000 (14:54 +0000)]
docs: Escape bare tags

Otherwise tools processing the description of GtkWidget will be *very*
confused.

5 years agodocs: Use the appropriate syntax for code block language
Emmanuele Bassi [Thu, 28 Jan 2021 14:53:39 +0000 (14:53 +0000)]
docs: Use the appropriate syntax for code block language

5 years agodocs: Remove stray code block end marker
Emmanuele Bassi [Thu, 28 Jan 2021 14:53:25 +0000 (14:53 +0000)]
docs: Remove stray code block end marker

5 years agoMerge branch 'gtk-surface-release-4' into 'master'
Jonas Ådahl [Fri, 29 Jan 2021 16:21:05 +0000 (16:21 +0000)]
Merge branch 'gtk-surface-release-4' into 'master'

wayland: Signal gtk-shell surface destruction to the server

See merge request GNOME/gtk!3129

5 years agoci: Use v26 of the Fedora image
Matthias Clasen [Fri, 29 Jan 2021 16:14:54 +0000 (11:14 -0500)]
ci: Use v26 of the Fedora image

This includes libglvnd-devel and should fix using the
gstreamer gl support.

5 years agoci: Add libglvnd-devel to images
Matthias Clasen [Fri, 29 Jan 2021 16:04:38 +0000 (11:04 -0500)]
ci: Add libglvnd-devel to images

gstreamers gl support included headers from this
package without depending on it. Work around this
packaging error by explicitly adding the needed
dependencies.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 29 Jan 2021 15:15:43 +0000 (15:15 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3615

See merge request GNOME/gtk!3132

5 years agotestsuite/testutils.c: Fix build on Visual Studio
Chun-wei Fan [Fri, 29 Jan 2021 09:52:54 +0000 (17:52 +0800)]
testsuite/testutils.c: Fix build on Visual Studio

Visual Studio does not come with unistd.h, but Windows do have write() and
close() in io.h, so include io.h instead of unistd.h on Windows.

For MinGW, unistd.h in turn includes io.h.

5 years agogl renderer: Fix viewport computation when rendering offscreen
Timm Bäder [Fri, 29 Jan 2021 08:43:44 +0000 (09:43 +0100)]
gl renderer: Fix viewport computation when rendering offscreen

Fixes #3615

5 years agoshowrendernode: Monitor input file
Timm Bäder [Fri, 29 Jan 2021 08:05:03 +0000 (09:05 +0100)]
showrendernode: Monitor input file

5 years agonode editor: Show some default node data
Timm Bäder [Thu, 28 Jan 2021 15:40:11 +0000 (16:40 +0100)]
node editor: Show some default node data

Show case the icon and the render node format this way.

5 years agoshader builder: Improve error output
Timm Bäder [Thu, 28 Jan 2021 11:31:18 +0000 (12:31 +0100)]
shader builder: Improve error output

5 years agonode editor: Make help textview monospace
Timm Bäder [Sun, 24 Jan 2021 04:27:07 +0000 (05:27 +0100)]
node editor: Make help textview monospace

Otherwise the nice markdown tables don't line up.

5 years agowindowhandle: Use drag threshold instead of double click threshold
Alexander Mikhaylenko [Fri, 25 Dec 2020 17:58:06 +0000 (22:58 +0500)]
windowhandle: Use drag threshold instead of double click threshold

Now that we have gtk_drag_check_threshold_double(), be consistent with
other draggable widgets and make sure we don't take over a drag before a
child does.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3513

5 years agodragsource: Use double coordinates for checking drag threshold
Alexander Mikhaylenko [Fri, 25 Dec 2020 17:57:48 +0000 (22:57 +0500)]
dragsource: Use double coordinates for checking drag threshold

If multiple nested widgets have drag sources on them, both using bubble
phase, we need to reliably pick the inner one. Both of them will try to
start dragging, and we need to make sure there are no situations where the
outer widget starts drag earlier and cancels the inner one.

Currently, this can easily happen via integer rounding: start and current
coordinates passed into gtk_drag_check_threshold() are initially doubles
(other than in GtkNotebook and GtkIconView), and are casted to ints. Then
those rounded values are used to calculate deltas to compare to the drag
threshold, losing quite a lot of precision along the way, and often
resulting in the outer widget getting larger deltas.

To avoid it, just don't round it. Introduce a variant of the function that
operates on doubles: gtk_drag_check_threshold_double() and use it instead
of the original everywhere.

5 years agoentry: Fix drag threshold check
Alexander Mikhaylenko [Tue, 19 Jan 2021 08:00:02 +0000 (13:00 +0500)]
entry: Fix drag threshold check

It was passing offsets as current oordinates.

5 years agowindowhandle: Don't drag on capture phase
Alexander Mikhaylenko [Fri, 25 Dec 2020 07:35:57 +0000 (12:35 +0500)]
windowhandle: Don't drag on capture phase

This was needed to work around widgets claiming event sequences on press,
by ignoring them and starting the drag anyway unless they have certain
event controllers on them.

The most visible offender was GtkButton, but since the last commit it
doesn't claim the sequence anymore and we can remove the hack.

5 years agocheckbutton: Claim sequence on release instead of press
Alexander Mikhaylenko [Fri, 25 Dec 2020 10:59:38 +0000 (15:59 +0500)]
checkbutton: Claim sequence on release instead of press

Make it possible to drag windows from check buttons in future.

5 years agobutton: Stop claiming event sequence on press
Alexander Mikhaylenko [Fri, 25 Dec 2020 07:30:33 +0000 (12:30 +0500)]
button: Stop claiming event sequence on press

Currently GtkButton claims the sequence both on press and on release. Stop
claiming it on press and only do it on release, allowing drags to start
from it.

This will allow to remove a hack from GtkWindowHandle.

5 years agoMerge branch 'pango-glyph-positions' into 'master'
Matthias Clasen [Fri, 29 Jan 2021 01:41:56 +0000 (01:41 +0000)]
Merge branch 'pango-glyph-positions' into 'master'

Tell pango not to round glyph positions

See merge request GNOME/gtk!2058

5 years agogsk: Fix render node serialization
Matthias Clasen [Thu, 28 Jan 2021 23:19:42 +0000 (18:19 -0500)]
gsk: Fix render node serialization

When looking for ascii glyphs, we must match
the pango shape flags that GTK is using.

5 years agowidget: Use subpixel positioning
Matthias Clasen [Thu, 28 Jan 2021 23:17:22 +0000 (18:17 -0500)]
widget: Use subpixel positioning

Before turning off pangos rounding of glyph positions,
we must check if the cairo we are using is new enough
to have working subpixel positioning (the relevant
cairo commit is 52a7c79fd4ff96bb5fac175f0199819b0f8c18fc).

5 years agogsk: Fix a thinko
Matthias Clasen [Thu, 28 Jan 2021 23:16:16 +0000 (18:16 -0500)]
gsk: Fix a thinko

With subpixel positioning, we need to offset the
cached glyphs by their phase.

5 years agowayland: Signal gtk-shell surface destruction to the server
Sebastian Keller [Thu, 28 Jan 2021 21:31:03 +0000 (22:31 +0100)]
wayland: Signal gtk-shell surface destruction to the server

This adds a "release" destructor for the gtk_surface1 interface which
signals to the server that a surface has been destroyed on the client
side, which the current "destroy" does not do.

Ideally the protocol would have specified a destroy request marked as
destructor to handle this automatically, however this is no longer
possible due to the destroy method being implicitly generated in the
absence of an explicit request in the protocol. Adding a destroy request
marked as destructor now would generate a new destroy method that
unconditionally would send the request to the server, which would break
clients running on servers not supporting that request.

5 years agoUpdate Swedish translation
Anders Jonsson [Thu, 28 Jan 2021 20:39:06 +0000 (20:39 +0000)]
Update Swedish translation

(cherry picked from commit 5a5bb9099e8e8781a307ce3f9f72e52937d3d411)

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 28 Jan 2021 19:12:18 +0000 (19:12 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!3127

5 years agolabel: Drop some unused includes
Matthias Clasen [Thu, 28 Jan 2021 05:01:35 +0000 (00:01 -0500)]
label: Drop some unused includes

5 years agoRemove vestigial glade support
Matthias Clasen [Thu, 28 Jan 2021 04:36:55 +0000 (23:36 -0500)]
Remove vestigial glade support

These files have not been kept up to date, and
glade doesn't work with GTK4 currently.

5 years agoMove the gesture icons in the right place
Matthias Clasen [Thu, 28 Jan 2021 04:34:06 +0000 (23:34 -0500)]
Move the gesture icons in the right place

Put these images into gtk/icons, where they belong.

5 years agoDrop unused logo resource
Matthias Clasen [Thu, 28 Jan 2021 04:28:36 +0000 (23:28 -0500)]
Drop unused logo resource

The inspector no longer sets a window icon.

5 years agoReduce use of GtkStyleContext
Matthias Clasen [Thu, 28 Jan 2021 04:07:55 +0000 (23:07 -0500)]
Reduce use of GtkStyleContext

Remove some unnecessary uses of GtkStyleContext where
we can directly go to the GtkCssStyle, and and drop
unnnecessary includes.

5 years agoUnify border-spacing handling
Matthias Clasen [Thu, 28 Jan 2021 03:21:02 +0000 (22:21 -0500)]
Unify border-spacing handling

Avoid using GtkStyleContext unnecessarily, just go
to the css node directly.

5 years agobuild: Redo the tools build
Matthias Clasen [Thu, 28 Jan 2021 02:56:12 +0000 (21:56 -0500)]
build: Redo the tools build

Move the tools directory to be toplevel, and instead of
recompiling sources twice, link them with the our new
static libgtk.a.

5 years agoMerge branch 'wip/fl/gl-renderer-fixes' into 'master'
Matthias Clasen [Thu, 28 Jan 2021 17:15:43 +0000 (17:15 +0000)]
Merge branch 'wip/fl/gl-renderer-fixes' into 'master'

gskglshaderbuilder: bind correct uv location

See merge request GNOME/gtk!3128

5 years agogskglshaderbuilder: bind correct uv location
Fabio Lagalla [Thu, 28 Jan 2021 16:06:12 +0000 (17:06 +0100)]
gskglshaderbuilder: bind correct uv location

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 28 Jan 2021 02:04:48 +0000 (02:04 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

builder-tool: Translate GtkImage:pixbuf

See merge request GNOME/gtk!3126

5 years agoMerge branch 'wip/fl/gl-gradients' into 'master'
Matthias Clasen [Thu, 28 Jan 2021 01:43:57 +0000 (01:43 +0000)]
Merge branch 'wip/fl/gl-gradients' into 'master'

OpenGL gradient rendering improvements and additions

See merge request GNOME/gtk!3105

5 years agobuilder-tool: Translate GtkImage:pixbuf
Matthias Clasen [Wed, 27 Jan 2021 22:01:51 +0000 (17:01 -0500)]
builder-tool: Translate GtkImage:pixbuf

The pixbuf property doesn't exist anymore. It is
commonly set to a path in ui files, so translate it
to the file property.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 27 Jan 2021 21:53:02 +0000 (21:53 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

docs: Add gtk_widget_grab_default to migration guide

See merge request GNOME/gtk!3125

5 years agodocs: Add gtk_widget_grab_default to migration guide
Matthias Clasen [Wed, 27 Jan 2021 18:50:05 +0000 (13:50 -0500)]
docs: Add gtk_widget_grab_default to migration guide

Point out the replacement for this api.

5 years agoMerge branch 'sophie-h-master-patch-47269' into 'master'
Timm Bäder [Wed, 27 Jan 2021 18:34:10 +0000 (18:34 +0000)]
Merge branch 'sophie-h-master-patch-47269' into 'master'

widget: get_name() is not nullable

See merge request GNOME/gtk!3124

5 years agowidget: get_name() is not nullable
Sophie Herold [Wed, 27 Jan 2021 17:49:17 +0000 (17:49 +0000)]
widget: get_name() is not nullable

Partial revert of !2905

5 years agogskglrenderer: Remove switch fallthrough comments
Fabio Lagalla [Wed, 27 Jan 2021 11:52:11 +0000 (12:52 +0100)]
gskglrenderer: Remove switch fallthrough comments

5 years agogskrendernode: Cache angle in conic gradients
Fabio Lagalla [Tue, 26 Jan 2021 15:15:12 +0000 (16:15 +0100)]
gskrendernode: Cache angle in conic gradients

5 years agogskglrenderer: Use gboolean instead of bool
Fabio Lagalla [Tue, 26 Jan 2021 13:57:02 +0000 (14:57 +0100)]
gskglrenderer: Use gboolean instead of bool

5 years agogskglrenderer: First class support of repeating-radial-gradient
Fabio Lagalla [Tue, 26 Jan 2021 11:49:16 +0000 (12:49 +0100)]
gskglrenderer: First class support of repeating-radial-gradient

5 years agogskglrenderer: First class support of repeating-linear-gradient
Fabio Lagalla [Tue, 26 Jan 2021 11:46:22 +0000 (12:46 +0100)]
gskglrenderer: First class support of repeating-linear-gradient

5 years agogskglrenderer: Optimize conic-gradient shader
Fabio Lagalla [Tue, 26 Jan 2021 11:40:48 +0000 (12:40 +0100)]
gskglrenderer: Optimize conic-gradient shader

5 years agogskglrenderer: Optimize radial-gradient shader
Fabio Lagalla [Tue, 26 Jan 2021 11:32:04 +0000 (12:32 +0100)]
gskglrenderer: Optimize radial-gradient shader

5 years agogskglrenderer: Optimize linear-gradient shader
Fabio Lagalla [Tue, 26 Jan 2021 11:11:26 +0000 (12:11 +0100)]
gskglrenderer: Optimize linear-gradient shader

5 years agoMerge branch 'fix-can-focus' into 'master'
Matthias Clasen [Wed, 27 Jan 2021 05:34:21 +0000 (05:34 +0000)]
Merge branch 'fix-can-focus' into 'master'

widget: Fix can-focus

Closes #3610

See merge request GNOME/gtk!3123

5 years agoMerge branch 'search-entry-capture' into 'master'
Matthias Clasen [Wed, 27 Jan 2021 05:14:30 +0000 (05:14 +0000)]
Merge branch 'search-entry-capture' into 'master'

Search entry capture

Closes #3098

See merge request GNOME/gtk!3115

5 years agowidget: Fix can-focus
Matthias Clasen [Wed, 27 Jan 2021 04:43:11 +0000 (23:43 -0500)]
widget: Fix can-focus

Setting can-focus to FALSE on a widget is supposed
to prevent focus from entering the entire subtree.
So when we grab focus directly to a widget, we need
to check the can-focus flag not just of the widget
itself, but all its ancestors.

Fixes: #3610
5 years agosearchentry: Capture events in the bubble phase
Matthias Clasen [Wed, 27 Jan 2021 03:17:57 +0000 (22:17 -0500)]
searchentry: Capture events in the bubble phase

This is an unfortunate naming clash, but it avoids
an event handling clash between the capture widget
and its children.

Fixes: #3098
5 years agoMerge branch 'css-crossfade-color' into 'master'
Matthias Clasen [Wed, 27 Jan 2021 03:11:17 +0000 (03:11 +0000)]
Merge branch 'css-crossfade-color' into 'master'

Css crossfade color

See merge request GNOME/gtk!3122

5 years agocss: Support colors in cross fades
Matthias Clasen [Wed, 27 Jan 2021 02:10:47 +0000 (21:10 -0500)]
css: Support colors in cross fades

The CSS Image Spec (Level 4) allows colors in
cross-fade expressions to specify solid-color images.

Support this.

5 years agocss: Add a constructor for GtkCssImageFallback
Matthias Clasen [Wed, 27 Jan 2021 02:10:11 +0000 (21:10 -0500)]
css: Add a constructor for GtkCssImageFallback

Add a way to create a solid color image.

5 years agodocs: Cosmetics
Matthias Clasen [Wed, 27 Jan 2021 01:33:16 +0000 (20:33 -0500)]
docs: Cosmetics

Tweak the css docs slightly.

5 years agoMerge branch 'gst-vaapi-fix-pre' into 'master'
Matthias Clasen [Wed, 27 Jan 2021 01:11:54 +0000 (01:11 +0000)]
Merge branch 'gst-vaapi-fix-pre' into 'master'

Minor fixes to gtkgstsink

See merge request GNOME/gtk!3120

5 years agoMerge branch 'css-text-decoration' into 'master'
Matthias Clasen [Wed, 27 Jan 2021 00:42:40 +0000 (00:42 +0000)]
Merge branch 'css-text-decoration' into 'master'

css: Fix text-decoration-line support

Closes #3621

See merge request GNOME/gtk!3121

5 years agocss: Fix text-decoration-line support
Matthias Clasen [Tue, 26 Jan 2021 22:40:34 +0000 (17:40 -0500)]
css: Fix text-decoration-line support

This property needs to be treated as flags, not as
enum, since it should be possible to specify more
than one value, e.g.

text-decoration-line: underline overline;

Tests included.

Fixes: #3621
5 years agogtkgstsink: Use video_frame_free also for the GL path
Jan Alexander Steffens (heftig) [Mon, 25 Jan 2021 21:38:45 +0000 (22:38 +0100)]
gtkgstsink: Use video_frame_free also for the GL path

The video frame needs to stay mapped while the texture is in use.

Avoid using g_memdup because the structure is not supposed to be moved.

5 years agogtkgstsink: Report allocation size even if no pool requested
Jan Alexander Steffens (heftig) [Mon, 25 Jan 2021 21:39:32 +0000 (22:39 +0100)]
gtkgstsink: Report allocation size even if no pool requested

We can do that so we should.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 26 Jan 2021 16:25:24 +0000 (16:25 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

docs: Update border-size docs

See merge request GNOME/gtk!3119

5 years agodocs: Update border-size docs
Matthias Clasen [Tue, 26 Jan 2021 15:40:22 +0000 (10:40 -0500)]
docs: Update border-size docs

GtkCenterLayout respected border-size as well.

5 years agoUpdated Czech translation
Marek Černocký [Tue, 26 Jan 2021 15:21:18 +0000 (16:21 +0100)]
Updated Czech translation

5 years agoUpdated Czech translation
Marek Černocký [Tue, 26 Jan 2021 15:12:36 +0000 (16:12 +0100)]
Updated Czech translation